From 6656b87e5042fbf97542808d0e94d2bd82d4e8c4 Mon Sep 17 00:00:00 2001 From: Russ Nelson Date: Tue, 3 May 2011 19:55:49 +0000 Subject: [PATCH] Only one extension was using getThumbnail --- includes/filerepo/File.php | 24 ------------------------ includes/filerepo/LocalFile.php | 1 - 2 files changed, 25 deletions(-) diff --git a/includes/filerepo/File.php b/includes/filerepo/File.php index c3d90cab1d..8c7993962d 100644 --- a/includes/filerepo/File.php +++ b/includes/filerepo/File.php @@ -558,30 +558,6 @@ abstract class File { return $thumb->getUrl(); } - /** - * As createThumb, but returns a ThumbnailImage object. This can - * provide access to the actual file, the real size of the thumb, - * and can produce a convenient \ tag for you. - * - * For non-image formats, this may return a filetype-specific icon. - * - * @param $width Integer: maximum width of the generated thumbnail - * @param $height Integer: maximum height of the image (optional) - * @param $render Integer: Deprecated - * - * @return ThumbnailImage or null on failure - * - * @deprecated use transform() - */ - public function getThumbnail( $width, $height=-1, $render = true ) { - wfDeprecated( __METHOD__ ); - $params = array( 'width' => $width ); - if ( $height != -1 ) { - $params['height'] = $height; - } - return $this->transform( $params, 0 ); - } - /** * Transform a media file * diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index a24b5c3a77..c32c128557 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -561,7 +561,6 @@ class LocalFile extends File { /** getUnscaledThumb inherited */ /** thumbName inherited */ /** createThumb inherited */ - /** getThumbnail inherited */ /** transform inherited */ /** -- 2.20.1